all: serverDriver

SITUATION_PATH := ../../situationControl

serverDriver: Situation.o serverDriver.cpp gameServer.o Room.o Player.o
	g++ serverDriver.cpp gameServer.o Situation.o Room.o Player.o -o serverDriver -lboost_system -lboost_serialization

gameServer.o: gameServer.h gameServer.cpp
	g++ -c gameServer.cpp -lboost_system

Situation.o: Room.o Player.o $(SITUATION_PATH)/Situation.cpp $(SITUATION_PATH)/Situation.h
	g++ -c Player.o Room.o $(SITUATION_PATH)/Situation.cpp -Wall

Room.o: $(SITUATION_PATH)/Room.cpp $(SITUATION_PATH)/Room.h
	g++ -c $(SITUATION_PATH)/Room.cpp -Wall

Player.o: $(SITUATION_PATH)/Player.cpp $(SITUATION_PATH)/Player.h
	g++ -c $(SITUATION_PATH)/Player.cpp -Wall

clean: 
	rm -rf serverDriver *.o
